package service.impl;

import dao.ColortypeDao;
import entity.Colortype;
import org.springframework.stereotype.Service;
import service.ColortypeService;

import javax.annotation.Resource;
import java.util.List;
@Service("colortypeService")
public class Colortypeimpl implements ColortypeService {
    @Resource(name="colortypeDao")
    private ColortypeDao colortypeDao;

    @Override
    public List<Colortype> list() {
        return colortypeDao.list();
    }

    @Override
    public int add(String name) {
        return colortypeDao.add(name);
    }
}
